Introduction

These examples demonstrate how to program and cross-compile a program for moxa products

(1)Select toolchain:

1. mxscaleb-gcc		UC-7400-LX(kernel 2.4), DA-660-8/16-LX(kernel 2.4), DA-661/662-663-16-LX(kernel 2.6) or UC-7400-LX Plus(kernel 2.6) serials.

2. xscale_be-gcc	DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus are 2.6 kernel system. Copmile for DA-66X-16-LX or UC-7400-LX Plus 

3. gcc			DA-681/682-16-LX, DA710, V2100, V2400, V242X X86 serials.

4. arm-linux-gcc	IA260/261/262-LX,EM2260-LX,W406-LX

(2) Modify compile.mk, check if define name correctly
	For example:	

	# Defined for DA-681/682-LX, DA-710, V2100, V2400
	PLATFORM = DA680

(3) Compile the librarry (if necessary)

(4) Compile the individual example
		
(5) Example support list 


X86 platform support list:

Support		Program path	Description
y		hello 		demo how to development user application.
n	  	buzzer 		demo how to code buzzer program on UC/DA.
n		keypad  	demo how to code Keypad program on UC/DA.
n 		lcm 		demo how to code lcm program on UC/DA.
y		TCPClient1 	demo how to use socket lib coding TCP Client program on UC/DA series embedded computer.
y 		TCPClient2 	demo how to use socket lib coding TCP Client program on UC7000 series.
y		TCPServer1	explain you how to write a simple TCP Server program to communicate with PC. The examples uses standard BSD Sockets.
y		TCPServer2 	explain you how to write a simple TCP Server program to communicate with PC. The examples uses standard BSD Sockets.
y		TCPClientServer explain you how to write a simple TCP Client/Server program. The examples uses standard BSD Sockets.
y		Udp1 		create UDP socket and exchange data between serial port and Ethernet.
y 		Udp2 		demo how to use socket lib coding UDP send/recv program.
n		UC-7400-modbus	demonstrates the modbus protocol and provides examples how to control serial/socket and how to build a modbus gateway.
y		swatchdog 	enable the watch dog timer for 5 seconds and do not ack it in 5 seconds. It will cause the system to reboot.  
y		DIO		demo the dio setting and detection. (For x86 platform, you need to compile moxalib first.)
n		logger		The serial logger program.
y		usbcf		show how to detect the USB/CF storage plugin or unplug. And check it mounts OK or fail.
n		ports		Read data from 8 serial ports and print on the screen what received
n		xmlparse	show how to parser a XML document.
n		proxy 		An multi-thread example to demostrate proxy data between serial and socket
y		link		explain you how to detect the Ethernet link status in a program.
n		lcmshowinfo 	A LCM/keypad menu example for Moxa embedded computer DA serials.  
n		moxalib 	The source code of libmoxalib.a.
n		can 		A CAN programming example for Moxa embedded computer.

Others: 
*		hotswap		The source of daemon and library for v2416 platform

